class TeamstoryController < ApplicationController
  
  def liststory
     @teamstories = Teamstory.all
    
  end
  
  def storydashboard
    @teamstory = Teamstory.find(params[:id])
  end
  
  def newstory
    @teamstory = Teamstory.new
  end
  
  def createstory
    @teamstory = Teamstory.new(params[:teamstory])
    if @teamstory.save
      redirect_to(:action => 'liststory')
    else
      render('newstory')
    end
  end
  
end
